package com.holly.unit.gen.modular.pojo;

import com.holly.unit.core.pojo.request.BaseRequest;
import com.holly.unit.scanner.api.annotation.field.ChineseDescription;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 类描述: 代码生成器参数
 * @author fxr
 * @version 1.0.0
 * @date 2022/1/20 13:39
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class TableInfoRequest extends BaseRequest{


    /**
     * 表名
     */
    @NotNull(message = "表名不能为空", groups = {edit.class})
    @ChineseDescription("表名")
    private String tableName;

    /***
     * 表说明
     */
    @ChineseDescription("表说明")
    private String tableComment;

    //主键生成策略
    @NotNull(message = "主键生成策略不能为空")
    @ChineseDescription("主键生成策略")
    private String primaryKeyPolicy;

    @ChineseDescription("主键序列号")
    private String seqCode;

    // 包名
    @NotNull(message = "包名不能为空", groups = {edit.class})
    @ChineseDescription("包名")
    private String entityPackage;

    // 实体名
    @NotNull(message = "实体名不能为空", groups = {edit.class})
    @ChineseDescription("实体名")
    private String entityName;

}
